Creates a new texture by loading an image from a file or a resource.
The file format is detected automatically. The supported formats are PNG and JPEG, though more formats might be available.
If %NULL is returned, then @error will be set.
This function is threadsafe, so that you can e.g. use GTask and g_task_run_in_thread() to avoid blocking the main thread while loading a big image.
the filename or resourcename to load
true if load from resource
A newly-created GdkTexture
GException on failure. ConstructionException GTK+ fails to create the object.
4.6
See Implementation
Creates a new texture by loading an image from a file or a resource.
The file format is detected automatically. The supported formats are PNG and JPEG, though more formats might be available.
If %NULL is returned, then @error will be set.
This function is threadsafe, so that you can e.g. use GTask and g_task_run_in_thread() to avoid blocking the main thread while loading a big image.